﻿using LoveEat.Domain;
using LoveEat.Domain.Aquaculture;
using LoveEat.Domain.Deep;
using LoveEat.Domain.Goods;
using LoveEat.Domain.slaughter;
using Microsoft.EntityFrameworkCore;

namespace LoveEat.Infrastructure
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class MyDbcontext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options">选项</param>
        public MyDbcontext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 文件夹实体类
        /// </summary>
        public DbSet<PathModel> paths {  get; set; } 
        /// <summary>
        /// 公司信息表实体类
        /// </summary>
        public DbSet<CompModel> comps { get; set; }
        /// <summary>
        /// 屠宰表实体类
        /// </summary>
        public DbSet<slaughterModel> slaughters { get; set; }
        /// <summary>
        /// 商品表实体类
        /// </summary>
        public DbSet<GoodsModel> goods { get; set; }
        /// <summary>
        /// 商品名称实体类
        /// </summary>
        public DbSet<GoodsNameModel> goodsName { get; set; }
        /// <summary>
        /// 深加工信息实体类
        /// </summary>
        public DbSet<DeepModel> deeps { get; set; }
        /// <summary>
        /// 养殖场信息实体类
        /// </summary>
        public DbSet<AquacultureModel> aquacultures { get; set; }
        /// <summary>
        /// 保健信息实体类
        /// </summary>
        public DbSet<HealthModel> healths { get; set; }
    
    
    }
}
